CFLAGS=-g

SOURCES=ccittotf.c ck7mod11.c cksmtest.c crc16.c crc32.c crcccitt.c \
		intelchk.c mkccitt.c mkcrc32.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

ccittotf: ccittotf.c
	${CC} ${CFLAGS} -o $@ $<
ck7mod11: ck7mod11.c
	${CC} ${CFLAGS} -o $@ $<
cksmtest: cksmtest.c
	${CC} ${CFLAGS} -o $@ $<
crc16: crc16.c
	${CC} ${CFLAGS} -o $@ $<
crc32: crc32.c
	${CC} ${CFLAGS} -o $@ $<
crcccitt: crcccitt.c
	${CC} ${CFLAGS} -o $@ $<
intelchk: intelchk.c
	${CC} ${CFLAGS} -o $@ $<
mkccitt: mkccitt.c
	${CC} ${CFLAGS} -o $@ $<
mkcrc32: mkcrc32.c
	${CC} ${CFLAGS} -o $@ $<
	
clean:
	rm -rf ${PROGRAMS}
